#include "includes.h"

#define control4			(*(volatile unsigned *)0x7C20008C)
#pragma location = ".MOVI_BL2_COPY"
void movi_bl2_copy(void) 
{
	control4 = control4|(0x03<<16);
   if((MOVI_HIGH_CAPACITY&0x00000004)==0x00000004){	
        
		CopyMovitoMem(HSMMC_CHANNEL, MOVI_BL2_SD_POS, MOVI_BL2_BLKCNT, (uint *)TEXT_BASE, MOVI_INIT_REQUIRED);
	}
	else if((MOVI_HIGH_CAPACITY&0x00000005)==0x00000005){
        
	    CopyMovitoMem(HSMMC_CHANNEL, MOVI_BL2_SDHC_POS, MOVI_BL2_BLKCNT, (uint *)TEXT_BASE, MOVI_INIT_REQUIRED);
	}
    
}



/* file end */



